Programming with QuickTime VR

| Previous | Chapter contents | Chapter top | Section top | Next |

QTVRInteractionNudge

You can use the QTVRInteractionNudge function either to translate the image and display the new view or to rotate the object in a particular direction and display its new appearance. The current setting of the interaction property for kQTVRInteractionNudgeMode determines whether the nudge action translates the image or rotates the object.

OSErr QTVRInteractionNudge (QTVRInstance qtvr, QTVRNudgeControl direction);

qtvr
An instance of a QuickTime VR movie.
direction
The direction of the nudge. See "Nudge Directions" for a description of the values you can pass in this parameter. See "Nudge Mode" for a description of the way you set the nudge mode.
function result
A result code.

DESCRIPTION

The QTVRInteractionNudge function adjusts the current view of the movie specified by the qtvr parameter as indicated by the direction parameter. The type of adjustment depends on the property setting for nudge interaction mode. If the nudge interaction mode is kQTVRNudgeRotate, the action of the QTVRInteractionNudge function is to rotate the object in the specified direction. If the nudge interaction mode is kQTVRNudgeTranslate, the action of the QTVRInteractionNudge function is to translate the image in the specified direction.

If the nudge interaction mode is kQTVRUNudgeSameAsMouse, the action of the QTVRInteractionNudge function is determined by the current mouse mode.

SEE ALSO

Use the functions QTVRGetInteractionProperty (link) and QTVRSetInteractionProperty (link) to set the nudge mode and direction properties.


© 1997 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |